﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Gedea.Model.Entities;

namespace Gedea.Service
{
    public static class Credentials
    {
        public static User currentUser { get; set; }

        public static string primaryRoot 
        { 
            get 
            {
                if (Environment.OSVersion.Version.Major < 6)
                {
                    //'Its XP or less'
                    return "C:\\Documents and Settings\\" + System.Environment.UserName + "\\My Documents\\GedeaDocs\\";
                }
                else
                {
                    //'Its vista or higher version of OS'
                    return "C:\\Users\\" + System.Environment.UserName + "\\Documents\\GedeaDocs\\";
                }
                //return "C:\\Users\\" + System.Environment.UserName + "\\Documents\\GedeaDocs\\"; 
            } 
        }

        public static string GenerationFolder = "gen\\";
        public static string UploadingFolder = "up\\";

        public static string DesktopRoot
        {
            get
            {
                if (Environment.OSVersion.Version.Major < 6)
                {
                    return "C:\\Documents and Settings\\" + System.Environment.UserName + "\\Desktop\\";
                }
                else
                {
                    return "C:\\Users\\" + System.Environment.UserName + "\\Desktop\\";
                }
            } 
        }
    }
}
